From: Florian Müllner Date: Fri, 18 Nov 2022 17:50:43 +0000 (+0100) Subject: status/remoteAccess: Don't override existing style classes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~259 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d0740d605e5221409e7704053fbfaad5f9f358d1;p=gnome-shell.git status/remoteAccess: Don't override existing style classes The indicator needs special styling for the color, but we still want it to pick shared 'system-status-icon' styling like the icon size. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6008 Part-of: --- diff --git a/js/ui/status/remoteAccess.js b/js/ui/status/remoteAccess.js index 43435ba48..1ed87931a 100644 --- a/js/ui/status/remoteAccess.js +++ b/js/ui/status/remoteAccess.js @@ -23,10 +23,8 @@ class RemoteAccessApplet extends SystemIndicator { this._handles = new Set(); this._indicator = this._addIndicator(); - this._indicator.set({ - style_class: 'screencast-indicator', - icon_name: 'media-record-symbolic', - }); + this._indicator.icon_name = 'media-record-symbolic'; + this._indicator.add_style_class_name('screencast-indicator'); controller.connect('new-handle', (o, handle) => { this._onNewHandle(handle);